/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.de.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.cn.entity.AttendanceCn;
import com.thinkgem.jeesite.modules.de.entity.AttendanceDe;
import com.thinkgem.jeesite.modules.de.dao.AttendanceDeDao;

/**
 * 德国考勤Service
 * @author hui.li
 * @version 2016-09-30
 */
@Service
@Transactional(readOnly = true)
public class AttendanceDeService extends CrudService<AttendanceDeDao, AttendanceDe> {

	public AttendanceDe get(String id) {
		return super.get(id);
	}
	
	public List<AttendanceDe> findList(AttendanceDe attendanceDe) {
		return super.findList(attendanceDe);
	}
	
	public Page<AttendanceDe> findPage(Page<AttendanceDe> page, AttendanceDe attendanceDe) {
		return super.findPage(page, attendanceDe);
	}
	
	@Transactional(readOnly = false)
	public void save(AttendanceDe attendanceDe) {
		super.save(attendanceDe);
	}
	
	@Transactional(readOnly = false)
	public void delete(AttendanceDe attendanceDe) {
		super.delete(attendanceDe);
	}
	
	/**
	 * 根据分组后查询
	 */
	@Transactional(readOnly = false)
	public List<AttendanceDe> syncAttendanceDe() {
		return dao.syncAttendanceDe();
	}
	
	/**
	 * 批量提交数据
	 * 
	 * @param list
	 */
	@Transactional(readOnly = false)
	public void updateStatus() {
		dao.updateStatus();
	}
	
}